package com.persagy.business.service.logic.init.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.persagy.business.service.logic.init.SystemInitService;
import com.persagy.core.mvc.dao.impl.SagaHttpDaoImpl;
import com.persagy.ems.constant.quartz.QuartzConstant;
import com.persagy.ems.pojo.quartz.ScheduleJob;

/**
 * 定时任务信息初始化
 * @author Administrator
 *
 */
@Service("JobStatusInit")
public class JobStatusInit implements SystemInitService {

	@Resource(name = "sagaHttpDao")
	private SagaHttpDaoImpl sagaHttpDaoImpl;
	
	@Override
	public void init() throws Exception {
		ScheduleJob criteria = new ScheduleJob();
		ScheduleJob objectUpdate = new ScheduleJob();
		objectUpdate.setJobStatus(QuartzConstant.JobStatus.NOT_START);;
	//	sagaHttpDaoImpl.update(criteria, objectUpdate);
	}

	@Override
	public int order() {
		return 0;
	}
	
}
